package study.JSONObject;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


import net.sf.json.JSONObject;

public class JSONObjectTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		List<Map<String,Object>> list = new ArrayList<Map<String, Object>>();
		JSONObject json = new JSONObject();
		HashMap<String, Object> map1= new HashMap<String, Object>();
		HashMap<String, Object> map2= new HashMap<String, Object>();
		
		map1.put("id", 123);
		map1.put("name", "name1");
		
		map2.put("id", 123);
		map2.put("name", "name1");
		
		list.add(map1);
		list.add(map2);

		json.put("attrList",  new ArrayList<Map<String, Object>>());
		System.out.println(json.toString());
		System.out.println(new ArrayList<Map<String, Object>>());
		
		
		
		
		

	}

}
